package com.wh.message.mail.in;

import org.hibernate.validator.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 邮件发送入参
 * @author 谢泽鹏
 * @version V1.0
 * @Package com.wh.message.jpush.in
 * @date 2014年10月8日 下午4:02:14
 * @Copyright 个人版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2018
 */
public class MailIn implements Serializable{

    private static final long serialVersionUID = -2325632594168963367L;

    /**
     * 邮件标题，不为空
     */
    @NotEmpty(message = "邮件标题不能为空")
    private String title = null;

    /**
     * 消息内容，不为空
     */
    @NotEmpty(message = "邮件内容不能为空")
    private String content;

    /**
     * 邮箱地址，用“,”拼接
     */
    @NotEmpty(message = "接收用户不能为空")
    private String emailString;

    /**
     * 是否Html文本
     */
    private boolean isHtml = false;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getEmailString() {
        return emailString;
    }

    public void setEmailString(String emailString) {
        this.emailString = emailString;
    }

    public boolean isHtml() {
        return isHtml;
    }

    public void setHtml(boolean html) {
        isHtml = html;
    }

    @Override
    public String toString() {
        return "MailIn{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", emailString='" + emailString + '\'' +
                ", isHtml=" + isHtml +
                '}';
    }
}
